#include "planeBody.h"

using namespace sde;

PlaneBody::PlaneBody(std::string _type, std::string _name, Object* _object) :
    Body(_type,_name,_object) {
}

btCollisionShape* PlaneBody::makeCollisionShape() {
    Vector3 normal = boost::any_cast<Vector3>(object->getVar("normal",Vector3::UNIT_Y));
    log("normal %s",normal.toString().c_str());
    return new btStaticPlaneShape(PhysicsServer::VectorToBulletVector(normal),0);
}
